package xc.com.cms.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import xc.com.cms.domain.CmsConfig;
import xc.com.cms.service.CmsConfigService;
@RequestMapping("/CmsConfig")
@RestController
@CrossOrigin
public class CmsConfigController  {
    @Autowired
    private CmsConfigService cmsConfigService;
    @GetMapping("/findbyid/{id}")
    public CmsConfig getmodel(@PathVariable("id") String id) {
        return cmsConfigService.getConfigById(id);
    }
}
